<template>
  <div id="app">
    <div class="jianlicontent clear" id="creatGivePoster" ref="creatGivePoster">
      <div class="jianlitop clear">
        <img v-if="applyState" class="ic-state" :src="applyStateEnum[applyState].icon" />
        <div class="jianliLeft">
          <img :src="info.base_info.header || tx">
        </div>
        <div class="jianlicenter">
          <h2>{{info.base_info.name}}</h2>
          <div class="desc">
            <span>{{info.base_info.sex|checkedSex}}</span>
            <span>{{workyear(info.base_info.birthday)}}岁</span>
            <span style="max-width: initial">{{workyear(info.base_info.workYear)}}年工作经验</span>
            <span style="max-width: 300px;">现住{{info.base_info.liveAddress}}</span>
          </div>
          <div class="jianliis">
            <div class="spanr">
              {{findJobStatusList[info.base_info.findJobStatus]}}
            </div>
            <div class="spanrtel">
              {{info.base_info.mobileNo}}
            </div>
            <div class="spanremil">
              {{info.base_info.email}}
            </div>
          </div>
        </div>
      </div>
      <div class="personTengt">
        <div class="yanses">
          <el-row>
            <el-col :span="12" v-if="info.experience.length > 0">
              <div class="jianliBt">最近工作</div>
              <el-row>
                <el-col :span="4">
                  <span>职位：</span></el-col>
                <el-col :span="19">{{info.experience[0].position}}</el-col>
              </el-row>
              <el-row>
                <el-col :span="4">
                  <span>公司：</span></el-col>
                <el-col :span="19">{{info.experience[0].companyName}}</el-col>
              </el-row>
              <el-row>
                <el-col :span="4">
                  <span>行业：</span></el-col>
                <el-col :span="19">{{info.experience[0].industry}}</el-col>
              </el-row>
            </el-col>
            <el-col :span="12" v-if="info.eduction.length > 0">
              <div class="jianliBt">最高学历/学位</div>
              <el-row>
                <el-col :span="5">
                  <span>专业：</span></el-col>
                <el-col :span="19">{{info.eduction[0].special}}</el-col>
              </el-row>
              <el-row>
                <el-col :span="5">
                  <span>学校：</span></el-col>
                <el-col :span="19">{{info.eduction[0].college}}</el-col>
              </el-row>
              <el-row>
                <el-col :span="5">
                  <span>学历/学位：</span></el-col>
                <el-col :span="19">{{info.eduction[0].education}}</el-col>
              </el-row>
            </el-col>
          </el-row>
          <div class="jianliBt">个人信息</div>
          <el-row>
            <el-col :span="3">
              <span>微信：</span>
            </el-col>
            <el-col :span="9">
              <span style="min-width:10px; display:inline-block;">{{info.base_info.wechat}}</span>
            </el-col>
            <el-col :span="3">
              <span>户口/国籍：</span>
            </el-col>
            <el-col :span="9">{{info.base_info.householdRegister}}</el-col>
          </el-row>
          <el-row>
            <el-col :span="3">
              <span>身高：</span>
            </el-col>
            <el-col :span="9">{{info.base_info.height}}cm</el-col>
            <el-col :span="3">
              <span>婚姻状态：</span>
            </el-col>
            <el-col :span="9">{{info.base_info.marryStatus|checkedMarryStatus}}</el-col>
          </el-row>
          <el-row>
            <el-col :span="3">
              <span>现住址：</span>
            </el-col>
            <el-col :span="9">{{info.base_info.liveAddress}}</el-col>
            <el-col :span="3" v-if="info.base_info.politicCountenance">
              <span>政治面貌：</span>
            </el-col>
            <el-col v-if="info.base_info.politicCountenance" :span="9">{{info.base_info.politicCountenance}}</el-col>
          </el-row>
          <el-row v-if="info.base_info.personalWeb">
            <el-col :span="3">
              <span>个人主页：</span>
            </el-col>
            <el-col :span="18">{{info.base_info.personalWeb}}</el-col>
          </el-row>
          <el-row>
            <el-col :span="3">
              <span>自我评价：</span>
            </el-col>
            <el-col :span="18">{{info.base_info.introduction}}</el-col>
          </el-row>
          <div class="jianliBt">目前年收入 {{info.base_info.currentYearWage}}万元 （包含基本工资、补贴、奖金、股权收益等）</div>
          <el-row>
            <el-col :span="3"><span>基本工资：</span></el-col>
            <el-col :span="5">{{info.base_info.baseWage}}万元</el-col>
            <el-col :span="3"><span>补助/津贴：</span></el-col>
            <el-col :span="5">{{info.base_info.allowance}}万元</el-col>
            <el-col :span="3"><span>奖金/佣金：</span></el-col>
            <el-col :span="5">{{info.base_info.bonus}}万元</el-col>
          </el-row>
          <div class="jianliBt">求职意向</div>
          <div class="jingyan" v-for="(item, index) in info.job_intention" :key="'j_'+index">
            <div class="mktitle clear">
              <div class="mleft">
                <span>{{item.workType}}</span>
                <span>期望薪资：{{item.wageType}}{{item.startWage}} -{{item.endWage}}</span>
              </div>
            </div>
            <div class="desc">
              <span>地址：</span>
              <span>{{item.workplace}}</span>
            </div>
            <div class="desc">
              <span>职位：</span>
              <span>{{item.position}}</span>
            </div>
          </div>
        <div class="jianliBt">工作经验</div>
        <div class="jingyan" v-for="(item, index) in info.experience" :key="'w_'+index">
          <div class="mktitle clear">
            <div class="mleft">
              <span>2018/04 - 至今</span>
              <span>{{item.companyName}}</span>
              <span>{{item.position}}</span>
            </div>
          </div>
          <div class="desc">
            <span>{{item.nature}}</span>
            <span>{{item.industry}}</span>
            <span>{{item.companySize}}</span>
          </div>
          <div class="misoshu">
            <div class="lefts">工作描述</div>
            <div class="rights">{{item.workDescribe}}
            </div>
          </div>
        </div>
        <div class="jianliBt">项目经验</div>
        <div class="jingyan" v-for="(item, index) in info.project_experience" :key="'x_'+index">
          <div class="mktitle clear">
            <div class="mleft">
              <span>{{item.startDate}} - {{item.endDate}}</span>
              <span>{{item.name}}</span>
              <span>{{item.role}}</span>
            </div>
          </div>
          <div class="misoshu" style="margin-top: 20px;">
            <div class="lefts">项目描述</div>
            <div class="rights">{{item.projectDescribe}}
            </div>
          </div>
        </div>
        <div class="jianliBt">在校情况</div>
        <div class="jingyan">
          <div class="mktitle clear">
            <div class="mleft" style="color: #8d8e9c">
              校内荣誉
            </div>
          </div>
          <div class="rongyu clear">
            <el-row style="margin: 20px 0;" v-for="(item, index) in info.honor" :key="'r_'+index">
              <el-col :span="3">{{item.time}}</el-col>
              <el-col :span="15"><b>{{item.honor}}</b></el-col>
              <el-col :span="6" style="color: #8d8e9c">{{item.level}}</el-col>
            </el-row>
          </div>
        </div>
        <div class="jingyan">
          <div class="mktitle clear">
            <div class="mleft" style="color: #8d8e9c">
              校内职务
            </div>
          </div>
          <div v-for="(item, index) in info.position" :key="'z_'+index">
            <div class="xiaotitle"><span>{{item.startTime}}-{{item.endTime}}</span><b>{{item.title}}</b></div>
            <div class="misoshu">
              <div class="lefts">工作描述</div>
              <div class="rights">{{item.workDescribe}}
              </div>
            </div>
          </div>
        </div>
        <div class="jianliBt">技能特长</div>
        <div class="jingyan">
          <div class="mktitle clear">
            <div class="mleft" style="color: #8d8e9c">
              技能/语言/兴趣
            </div>
          </div>
          <div class="rongyu clear">
            <el-row style="margin: 20px 0;" v-for="(item, index) in info.skill" :key="'j_'+index">
              <el-col :span="6">{{item.skillName}}</el-col>
              <el-col :span="18"><b>{{item.level}}</b></el-col>

            </el-row>
          </div>
        </div>
        <div class="jingyan">
          <div class="mktitle clear">
            <div class="mleft" style="color: #8d8e9c">
              证书
            </div>
          </div>
          <div class="rongyu clear">
            <el-row style="margin: 20px 0;" v-for="(item, index) in info.certificate" :key="'s_'+index">
              <el-col :span="4">{{item.time}}</el-col>
              <el-col :span="20"><b>{{item.title}}</b></el-col>

            </el-row>
          </div>
        </div>
        <div class="jingyan">
          <div class="mktitle clear">
            <div class="mleft" style="color: #8d8e9c">
              培训经历
            </div>
          </div>
          <div v-for="(item,i) in info.training" :key="'p_'+i">
            <div class="xiaotitle"><span>{{item.startTime}}-{{item.endTime}}</span><b>{{item.title}}</b><span
              style="color: #999">{{item.companyName}}</span>
            </div>
            <div class="misoshu">
              <div class="lefts">培训内容</div>
              <div class="rights">{{item.trainingContent}}
              </div>
            </div>
          </div>
        </div>
        <!-- <div class="jianliBt">简历附件</div>
        <div class="jl-pdf">
          <pdf v-if="info.fileUrl" :page="1" :src="info.fileUrl" ></pdf>
          <img v-else src="../../assets/img/pdf.png" class="default" alt="">
        </div> -->
      </div>
    </div>
  </div>

  <el-dialog
    :append-to-body="true"
    :show-close="false"
    :visible.sync="dgPositionVisible"
    custom-class="dg-position"
    width="800px">
    
    <img class="dg-close" src="./images/ic_close.png" @click="dgPositionVisible = false"/>
    <div class="companytablists clear" v-for="(item, index) in zhiweiList" :key="index" @click="onFocus(item)">
      <span class="zwname">{{item.positionName}}</span>
      <span class="jieshao">
        <b>{{item.wageRange}}</b>
        <span v-if="item.workYears">{{item.workYears}}年经验</span>
        <span v-if="item.educational">{{item.educational}}</span>
        <span>招{{item.zprs}}人</span>
      </span>
      <span class="riqi">发布于 {{item.updateTime}}</span>
    </div>
  </el-dialog>
    <RightMenu @showPosition="showPosition" :showMenus="menusList" 
      @stateChange="onStateChange"
      @reload="onReload"/>
    <Footer/>
  </div>
</template>
<script type="text/babel">
// @ is an alias to /src
import Footer from './components/Footer'
import RightMenu from './components/RightMenu'
import { findJobStatus, marryStatus, myCv, cVFileByPage, PositionByEnterpriseId, WatchPersonal, sexlist, applyPositionMy,
UpdatePositionApplyState } from '../../assets/js/domains'
import tx from '../../assets/img/default.jpg'
import pdf from 'vue-pdf'

export default {
  name: 'MemLook',
  filters: {
    checkedMarryStatus (val) {
      switch (val) {
        case 1:
          return marryStatus['1']
        case 2:
          return marryStatus['2']
        case 3:
          return marryStatus['3']
        default:
          return marryStatus['1']
      }
    },
    checkedSex (val) {
      return sexlist[val] || sexlist['1']
    }
  },
  components: {
    Footer, RightMenu, pdf
  },
  directives: {},
  data() {
    return {
      tx: tx,
      findJobStatusList: findJobStatus,
      dgPositionVisible: false,
      zhiweiList:[],
      menusList:['scan','position','back','exit'],
      info: {
        base_info: {},
        job_intention: {},
        experience: [],
        eduction: [],
        project_experience: [],
        position: [],
        training: [],
        honor: [],
        skill: [],
        certificate: [],
        fileUrl:''
      },
      userUid: '',
      applyStateEnum:{
        1:{label:'初筛', icon: require('../../assets/img/p_yy.png')},
        2:{label:'感兴趣', icon: require('../../assets/img/p_gxq.png')},
        3:{label:'不感兴趣', icon: require('../../assets/img/p_mxq.png')},
        4:{label:'邀面试', icon: require('../../assets/img/p_yms.png')},
        5:{label:'待查阅', icon: require('../../assets/img/p_dcy.png')},
      },
      applyState:0,
      cacheCompanyInfo:{},
      positionId:'',
    }
  },
  created() {
    document.title = '简历预览'
    this.userUid = this.$route.query.id
    this.cacheCompanyInfo = JSON.parse(localStorage.getItem('facer_companyInfo'))
    
  },
  computed: {},
  mounted() {
    this.getpost()
    // this.getPdf()
    this.getPositionByEnterpriseId()
  },
  methods: {
    dateDiff(date1, type) {
      date1 = new Date(date1).getTime()
      var date2 = new Date().getTime()
      type = type || 'hour'
      var diffValue = Math.abs(date2 - date1)
      var second = 1000
      var minute = second * 60
      var hour = minute * 60
      var day = hour * 24
      var month = day * 30
      var year = month * 12
      var timeType = {
        second: second,
        minute: minute,
        hour: hour,
        day: day,
        month: month,
        year: year
      }

      return Math.ceil(diffValue / timeType[type])
    },
    workyear(btime) {
      return this.dateDiff(btime, 'year')
    },
    showPosition(){
      this.dgPositionVisible = true
    },
    getPositionByEnterpriseId(id) {
      PositionByEnterpriseId({
        enterprise_uid: this.cacheCompanyInfo.enterpriseUid,
        pageNum: 1,
        pageSize: 500
      }).then(res => {
        if (res.code === 200) {
          this.zhiweiList = res.data.content
        } else {
          this.$alert(res.msg, '提示')
        }
      })
    },
    WatchPersonal() {
      const params = {
        enterpriseUid: this.cacheCompanyInfo.enterpriseUid,
        userUid: this.userUid,
        enterpriseName: '',
        industry: '',
        enterpriseNature: '',
        companySize: ''
      }
      WatchPersonal(params).then(res => {

      })
    },
    getPdf () {
      cVFileByPage({ user_uid: this.userUid }).then(res => {
        if (res.code == 200) {
          this.info.fileUrl = res.data
        }
      })
    },
    getpost() {
      const _this = this
      myCv({ user_uid: this.userUid }).then(function (res) {
        if (res.code === 200) {
          res.data.job_intention = res.data.job_intention ? res.data.job_intention : {}
          _this.info = res.data
          _this.WatchPersonal()
        } else {
          _this.$alert(res.msg, '提示', {
            confirmButtonText: '确定',
            callback() {
            }
          })
        }
      })
    },
    onReload(userUid){
      this.userUid = userUid
      this.menusList = ['scan','position','back','exit']
      this.applyState = ''
      this.getpost()
      // this.getPdf()
      this.getPositionByEnterpriseId()
    },
    onStateChange(state){
      UpdatePositionApplyState({ applyPositionId: this.curPosition.applyPositionId, applyState: state }).then( res => {
        if (res.code == 200) {
          this.applyState = state
        }
      })
    },
    onFocus(position, state = 1) {
      this.curPosition = position
      applyPositionMy({
        positionId: position.id,
        applyState: state,
        laiYuan: '招聘会',
        userUid: this.userUid,
        enterpriseUid: this.cacheCompanyInfo.enterpriseUid
      }).then(res => {
        if (res.code !== 200 || !res.data) {
          this.$message.error('操作失败')
          return
        }
        this.curPosition.applyPositionId = res.data.id // 后续感兴趣用的
        this.dgPositionVisible = false
        this.applyState = state
        this.menusList = ['gxq','mxq','yms','scan','back','exit']
      })
    },
    showPostions(page) {
      PositionByEnterpriseId({
        enterprise_uid: this.cacheCompanyInfo.enterpriseUid,
        pageNum: 1,
        pageSize: 500
      }).then(res =>{
        if (res.code === 200) {
          this.zhiweiList = res.data.content
        } else {
          this.$alert(res.msg, '提示')
        }
      })
    },
  }
}
</script>
<style lang="less" scoped>
 .member_menu {
  float: left;
  width: 200px;
  margin-top: 30px;
  color: #20a2b2;

}
.jianlicontent{
  .jianlitop{
    background: #404257;
    padding: 20px 30px;
    .ic-state{
      position:absolute;
      top: 0;
      right: 180px;
      width: 200px;
    }
    .jianliLeft{
      display: inline-block;
      margin-left: 0;
      img{
        width: 120px;
        height: 160px;
      }
    }
    .jianlicenter{
      display: inline-block;
      margin-left: 30px;
      h2{
        font-size: 28px;
        color: #fff;
        padding:20px 0;
      }
      .desc{
        span {
          height: 30px;
          font-size: 18px;
          display: inline-block;
          max-width: 94px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          color: #8d8e9c;
          position: relative;
          line-height: 30px;
          padding:0 15px;
          &:first-child{
            padding-left: 0px;
          }

          &:before {
            position: absolute;
            content: '';
            right: 0;
            top: 8px;
            width: 1px;
            height: 16px;
            border-right: 1px solid #8d8e9c;
          }

          &:last-child:before {
            border-right: 0;
          }
        }
      }
      .jianliis{
        font-size: 18px;

        .spanr{
          display: inline-block;
          color: #8d8e9c;
          background: url("../../assets/img/qizhi.png") left center no-repeat;
          background-size: auto 18px;
          padding-left: 30px;
        }
        .spanrtel{
          display: inline-block;
          margin-left: 50px;
          color: #8d8e9c;
          background: url("../../assets/img/dianhua.png") left center no-repeat;
          background-size: auto 18px;
          padding-left: 30px;
        }
        .spanremil {
          display: inline-block;
          margin-left: 50px;
          color: #8d8e9c;
          background: url("../../assets/img/email.png") left center no-repeat;
          background-size: auto 18px;
          padding-left: 30px;
        }
      }
    }
    
  }
}
.uploadimg {
  display: inline-block;

  .avatar-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .avatar-uploader .el-upload:hover {
    border-color: #409EFF;
  }

  .avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 178px;
    height: 178px;
    line-height: 178px;
    text-align: center;
  }

  .avatar {
    width: 178px;
    height: 178px;
    display: block;
  }
}
.personTengt{
  background: #fff;
  min-height: 500px;
  padding: 30px;
  .qixc {
    .shanch {
      position: absolute;
      bottom: 0px;
      text-align: center;
      left: 0;
      right: 0;
      z-index: 1;
      background: rgba(0, 0, 0, 0.5);
      color: #fff;
      display: none;
      cursor: pointer;
    }
    &:hover{
      .shanch{
        display: block;
      }
    }
  }

  .comtops{
    border-bottom: 1px solid #dcdee0;
    padding-bottom: 20px;
    margin-bottom: 20px;
    .el-row{
      font-size: 16px;
      line-height: 40px;
      img{
        margin-top: 10px;
      }
      span{
        color: #8d8e9c;
      }
    }
    .logo{
      float: left;
      width: 120px;
      img{
        width: 120px;
      }
    }
    .comnames{
      margin-left: 20px;
      float: left;
      .desc {
        padding: 10px 20px 0px 0px;
        span {
          height: 22px;
          font-size: 16px;
          display: inline-block;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          color: #8d8e9c;
          position: relative;
          line-height: 22px;
          padding:8px;
          &:first-child{
            padding-left: 0px;
          }

          &:before {
            position: absolute;
            content: '';
            right: 0;
            top: 10px;
            width: 1px;
            height: 20px;
            border-right: 1px solid #dcdee0;
          }

          &:last-child:before {
            border-right: 0;
          }
        }


      }
      .address{
        font-size: 18px;
        color: #505050;
        position: relative;
        padding-left: 24px;
        &:after{
          position: absolute;
          content: '';
          left: 0;
          height: 25px;
          width: 17px;
          top: -2px;
          background: url("../../assets/img/address.png") left center no-repeat;
          background-size: 100%;
        }
      }
    }
    .rsub{
      float: right;
      width: 180px;
      height: 42px;
      margin-top: 30px;
      font-size: 18px;
      background: #20a2b2;
      border-radius: 6px;
      color: #fff;
      line-height: 42px;
      text-align: center;
      cursor: pointer;
    }

  }
  .yanses{
    font-size: 18px;
    line-height: 34px;
    span{
      color: #8d8e9c;
    }
  }
  .jianliBt{
    font-size: 22px;
    color: #445c86;
    padding-top: 30px;
    padding-bottom: 30px;
    font-weight: bold;
  }
  .radiotab{
    width: 360px;
    height: 40px;
    display: inline-block;
    line-height: 40px;
    text-align: center;
    clear: both;
    overflow: hidden;
    font-size: 16px;
    border-radius: 8px;
    .radios{
      float: left;
      width: 50%;
      background: #f6f6f8;

      &.on{
        background: #20a2b2;
        color: #fff;
      }
    }
  }
  .formban{
    width: 50%;
    float: left;

  }
  .jingyan{
    background: #ffffff;
    border: 1px solid #dcdee0;
    border-radius: 6px;
    margin-bottom: 20px;
    .mktitle{
      padding: 8px;
      background: #f6f6f8;
      border-radius: 6px 6px 0px 0px;
      .mleft{
        font-size: 20px;
        padding: 0 20px;
        span {
          display: inline-block;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          position: relative;
          padding-right: 10px;
          padding-left: 10px;
          &:first-child{
            padding-left: 0px;
          }

          &:before {
            position: absolute;
            content: '';
            right: 0;
            top: 10px;
            width: 1px;
            height: 16px;
            border-right: 1px solid #999;
          }

          &:last-child:before {
            border-right: 0;
          }
        }
      }
      .mright{
        float: right;
        padding: 0 20px;
        font-size: 20px;
        i{
          padding: 0 10px;
        }
      }
    }
    .rongyu{
      padding: 10px 20px;
      font-size: 16px;
    }
    .desc {
      padding: 5px 20px 0 20px;
      span {
        font-size: 14px;
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #8d8e9c;
        position: relative;
        height: 22px;
        line-height: 22px;
        padding-right: 10px;
        padding-left: 10px;
        &:first-child{
          padding-left: 0px;
        }

        &:before {
          position: absolute;
          content: '';
          right: 0;
          top: 5px;
          width: 1px;
          height: 16px;
          border-right: 1px solid #dcdee0;
        }

        &:last-child:before {
          border-right: 0;
        }
      }


    }
    .xiaotitle{
      padding: 20px;
      font-size: 16px;
      span,b{
        padding-right: 30px;
      }
    }
    .misoshu{
      display: flex;
      padding: 0 0 20px 0;
      height: 22px;
      line-height: 22px;
      padding-right: 10px;
      font-size: 14px;
      display: inline-block;
      .lefts{
        display: inline-block;
        width: 100px;
        text-align: right;
        padding-right: 24px;
        color: #999;
      }
      .rights{
        display: inline-block;
        flex: 1;
        padding-right: 20px;
        clear: both;
        .workdescribe{
          float: left;
        }
        .workbtn{
          float: right;
          padding-right: 33px;
        }
      }
    }
  }
  .accessories-list{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    .accessories-item{
      width: 200px;
      height: 320px;
      margin: 20px 50px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      float: left;
      .img{
        width: 100%;
        height: 250px;
        border-radius: 5px;
        overflow: hidden;
      }
      .btn{
        width: 100%;
        height: 40px;
        border: 1px solid  #DCDEE0;
        text-align: center;
        line-height: 40px;
        color: #1E1E1E;
        font-size: 16px;
        cursor: pointer;
        border-radius: 5px;
        &:hover{
          background-color: red;
          color: white;
        }
      }

      .upload{
        background-color: #20A2B2;
        color: white;
        border: 1px solid #20A2B2;
        &:hover{
          background-color: #20A2B2;
        }
      }
      .uploadimg{
        width: 100%;
        height: 250px;
        border-radius: 5px;
        border: 1px solid #DCDEE0;
        background-color: #FDFDFD;
      }
    }
  }


}
.member_right {
  float: right;
  width: 1010px;
  margin-top: 30px;



  .changepwd{
    background: #fff;
    padding: 40px;
    min-height: 61vh;
    .yzmbtn{
      background: #20a2b2;
      border: 1px solid #20a2b2;
    }
    .yzms{
      width: 120px;
      height: 40px;
      border: 1px solid #f5f5f5;
      display: inline-block;
      margin-top: 0px;
      float: right;
    }
    .submintbtn{
      background: #20a2b2;
      border: 1px solid #20a2b2;
    }
  }
  .joincontent{
    margin-bottom: 30px;
    background: #fff;
    padding: 30px;
    position: relative;
    cursor: pointer;

    .sutatusimg{
      position: absolute;
      top: 50px;
      right: 0px;
      z-index: 1;
      width: 134px;
      height: 134px;
      &.doing{
        background: url("../../assets/img/jxz.png") no-repeat;
        background-size: 104px auto;
      }
      &.end{
        background: url("../../assets/img/yjs.png") no-repeat;
        background-size: 104px auto;
      }
      &.will{
        background: url("../../assets/img/wks.png") no-repeat;
        background-size: 104px auto;
      }
    }
    .joinLeft{
      float: left;
      width: 260px;
      height: 190px;
      img{
        width: 100%;
        height: 190px;
        vertical-align: top;
      }
    }
    .joinRight{
      float: left;
      margin-left: 20px;
      width: 600px;
      .titlte{
        font-size: 22px;
        color: #20a2b2;
        line-height: 32px;
        height: 60px;
      }
      .deac{
        height: 34px;
        font-size: 18px;
        color: #8d8e9c;
        line-height: 34px;
        .nr{
          color: #1e1e1e;
          padding-left: 20px;
        }
      }
    }
    .btnstu{
      position: absolute;
      bottom: 0;
      right: 10px;
      z-index: 1;
      .cancelbm{
        padding: 0 20px;
        height: 40px;
        line-height: 40px;
        background: #ffffff;
        border: 2px solid #dcdee0;
        border-radius: 10px;
        font-size: 16px;
        text-align: center;
        &.pass{
          border-color: #20A2B2;
          color: #20A2B2;
        }
        &.doing{
          border-color: #ff7e00;
          color: #FF7E00;
        }
        &.fail{
          border-color: #FF0000;
          color: #FF0000;
        }
      }
    }
    &:hover{
      .titlte{
        color: #12cde5;
      }
    }
  }

  .membt{
    font-size: 22px;
    padding: 20px 0;
  }
  .myjianli {
    background: #fff;
    .jianliLeft {
      float: left;
      padding: 30px;
      width: 75%;
      .teshunum{
        background: #f6f6f8;
        padding: 30px;
        text-align: center;
        h2 {
          font-size: 24px;
          color: #505052;
          padding-top: 10px;
          text-align: left;
        }

        p {
          font-size: 16px;
          color: #8d8e9c;
        }
        .qynum {
          background: url("../../assets/img/mem_eye.png") left center no-repeat;
          // background-size: auto 44px;
          background-size: 30px 30px;
          background-position: 20px 26px;
          padding-left: 70px;
          display: inline-block;
        }
        .jobnum {
          background: url("../../assets/img/mem_mysq.png") left center no-repeat;
          // background-size: auto 44px;
          background-size: 30px 30px;
          background-position: 20px 26px;
          padding-left: 70px;
          display: inline-block;
        }
        .rennum {
          background: url("../../assets/img/mem_wdsq.png") left center no-repeat;
          // background-size: auto 44px;
          background-size: 30px 30px;
          background-position: 20px 26px;
          padding-left: 70px;
          display: inline-block;
        }
      }
      .tx {
        float: left;
        width: 60px;
        border-radius: 50%;
        height: 60px;
        margin-top: 12px;
        margin-right: 15px;
      }

      .jianNames {
        float: left;
        h2 {
          font-size: 24px;
          line-height: 46px;
          height: 46px;
          font-weight: normal;
          cursor: pointer;
        }

        p {
          font-size: 18px;
          color: #8d8e9c;
        }
      }
      .morelook{
        float: right;
        margin-top: 18px;
        line-height: 30px;
        cursor: pointer;
        .jizhi{
          background: red;
          color: #fff;
          height: 28px;
          line-height: 28px;
          border: 0;
          border-radius: 6px;
        }
        &:hover{
          color: #12cde5;
        }
      }
    }

    
  }
  .historytab{
    background: #fff;
    padding: 15px;
    margin-bottom: 30px;
    clear: both;
    overflow: hidden;
    img{
      float: left;
      width: 50px;
      height: 50px;
    }
    .names{
      float: left;
      margin-left: 10px;
      h2{
        font-size: 18px;
        width: 188px;
        height: 22px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .desc {
        span {
          height: 22px;
          font-size: 14px;
          display: inline-block;
          max-width: 94px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          color: #8d8e9c;
          position: relative;
          line-height: 22px;
          padding:8px;
          &:first-child{
            padding-left: 0px;
          }

          &:before {
            position: absolute;
            content: '';
            right: 0;
            top: 10px;
            width: 1px;
            height: 20px;
            border-right: 1px solid #dcdee0;
          }

          &:last-child:before {
            border-right: 0;
          }
        }


      }
    }
    .times{
      color: #8d8e9c;
      border-top: 1px solid #dcdee0;
      padding-top: 10px;
    }
  }
  .jobtab {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    .stuatsdo{
      position: absolute;
      content: '';
      right: 140px;
      bottom: 20px;
      z-index: 1;

      width: 138px;
      height: 85px;
      &.gxq{
        background: url("../../assets/img/p_gxq.png");
        background-size: 100% auto;
      }
      &.yms{
        background: url("../../assets/img/p_yms.png");
        background-size: 100% auto;
      }
      &.mxq{
        background: url("../../assets/img/p_mxq.png");
        background-size: 100% auto;
      }
      &.ycy{
        background: url("../../assets/img/p_yy.png");
        background-size: 100% auto;
      }
      &.dcy{
        background: url("../../assets/img/p_dcy.png");
        background-size: 70% auto;
        background-repeat: no-repeat;
        background-position: 18px 18px;
      }
    }
    .cancelbtn{
      width: 120px;
      height: 40px;
      line-height: 40px;
      text-align: center;
      font-size: 16px;
      background: #ffffff;
      border: 1px solid #dcdee0;
      border-radius: 6px;
    }
    .shenqingyu{
      float: right;
      color: #8d8e9c;
      margin-top: 22px;
      font-size: 16px;
    }
    .list-row{
      clear: both;
    }
    .btn-goutong{
      background-color: #20A2B2;
      color: #fff;
      border-radius: 4px;
      margin-left: 20px;
    }
    
    .zwname{
      float: left;
      height: 32px;
      cursor: pointer;
      font-size: 24px;
      text-align: left;
      color: #20a2b2;
      line-height: 32px;
      font-weight: bold;
    }
    &:hover{
      .zwname{
        color: #12cde5;
      }
    }
    .jieshao {
      float: left;
      b {
        font-size: 18px;
        font-family: Bebas;
        text-align: left;
        color: #f23f00;
      }

      span {
        height: 22px;
        font-size: 16px;
        display: inline-block;
        color: #8d8e9c;
        position: relative;
        line-height: 22px;
        padding: 10px;

        &:first-child {
          padding-left: 0px;
        }

        &:before {
          position: absolute;
          content: '';
          right: 0;
          top: 13px;
          width: 1px;
          height: 18px;
          border-right: 1px solid #dcdee0;
        }

        &:last-child:before {
          border-right: 0;
        }
      }
    }

    .taglist {
      height: 36px;
      line-height: 34px;
      background: #f6f6f8;
      border: 1px solid #f6f6f8;
      border-radius: 6px;
      padding: 0 15px;
      font-size: 16px;
      float: left;
      margin-right: 10px;
      margin-top: 5px;
    }
    .gsinfo{
      float: right;
      img {
        width: 30px;
        float: left;
      }

      b {
        height: 30px;
        font-size: 18px;
        margin-left: 10px;
        float: left;
        color: #1e1e1e;
        line-height: 30px;
        font-weight: normal;
        cursor: pointer;
      }
    }
    .gsjj {
      float: right;

      span {
        height: 30px;
        font-size: 16px;
        display: inline-block;
        color: #8d8e9c;
        position: relative;
        line-height: 30px;
        padding:0 10px;
        &:first-child{
          padding-left: 0px;
        }

        &:before {
          position: absolute;
          content: '';
          right: 0;
          top: 5px;
          width: 1px;
          height: 20px;
          border-right: 1px solid #dcdee0;
        }

        &:last-child:before {
          border-right: 0;
        }
      }
    }
  }

}

.sex-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;

  & > .sex-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #666666;
    cursor: pointer;

    &.active{
      color: #ffffff;
    }

    &:first-child.active {
      background-color: #409EFF;
    }

    &:last-child.active {
      background-color: red;
    }
  }
}

.jl-pdf{
  width: 200px;
  height: 250px;
  border-radius: 5px;
  border: 1px solid #dcdee0;
  .default{
    width: 155px;
    height: 164px;
    margin: 30px 20px;
    border: 1px dashed rgb(220, 222, 224);
  }
}



.companytablists {
  background: #fff;
  padding: 15px;
  margin-bottom: 15px;
  cursor: pointer;

  .zwname {
    height: 32px;
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    color: #20a2b2;
    line-height: 32px;
  }

  .jieshao {
    margin-left: 30px;

    b {
      font-size: 18px;
      font-family: Bebas;
      text-align: left;
      color: #f23f00;
    }

    span {
      height: 22px;
      font-size: 16px;
      display: inline-block;
      color: #8d8e9c;
      position: relative;
      line-height: 22px;
      padding: 10px;

      &:first-child {
        padding-left: 0px;
      }

      &:before {
        position: absolute;
        content: '';
        right: 0;
        top: 13px;
        width: 1px;
        height: 18px;
        border-right: 1px solid #dcdee0;
      }

      &:last-child:before {
        border-right: 0;
      }
    }
  }

  .riqi {
    float: right;
    height: 40px;
    font-size: 18px;
    color: #8d8e9c;
    line-height: 40px;
  }
}
</style>
<style>
.dg-position{
  border-radius: 16px;
  background-color: #f6f6f6;
  height: 70%;
}

.dg-position .dg-close{
  position: absolute;
  top: -70px;
  right: 0;
  width: 40px; 
  height: 40px;
}
.dg-position .el-dialog__header{height: 0;padding: 0;}
.dg-position .el-dialog__body{background-color: transparent; height: 100%;overflow: scroll; }
</style>
